package com.bupt.secret.utils;

/**
 * 每个模块有自己的100个状态码区间，各模块可以自己定义
 * */
public enum ResultCode {
    /* 成功状态码 */
    SUCCESS(0, "成功"),

    DATA_ERROR(500,"操作失败"),


    ;
    private Integer code;
    private String message;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
